Optimize stack usage of activate_deps slightly
authorAlex Crichton <alex@alexcrichton.com>
Tue, 27 Jan 2015 05:18:57 +0000 (21:18 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 27 Jan 2015 05:18:57 +0000 (21:18 -0800)
commitafcc3ef4c7d8f1353b128868589f6de25cd4e84e
tree864f4e47896b0e6a729239007ba838b2bc7a18c9
parente0468dfbbb09254e40fd0ad8e8ff1d12c1a5fedf
Optimize stack usage of activate_deps slightly

* Break out the error reporting to its own separate function
* Don't pass `Context` by value as it's quite large, instead pass `Box<Context>`
* Don't bother monomorphizing `R: Registry`, instead just take a trait object.

Closes #1231
src/cargo/core/resolver/mod.rs